package com.example.elderlycare.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@TableName("equipment")
@Builder
public class Equipment {
    private Integer id;
    private Date deletedAt;
    private String code;
    private String modelName;
    private String simCode;
    private Date issuedAt;
    private Integer isOnline;

    private Integer supplierId;
    @TableField(exist = false)
    private Supplier supplier;

    private Integer equipTypeId;
    @TableField(exist = false)
    private Common equipType;

    private Integer employeeId;
    @TableField(exist = false)
    private Employee employee;

    private Integer issueMethodId;
    @TableField(exist = false)
    private Common issueMethod;

    private Integer equipmentStatusId;
    @TableField(exist = false)
    private Common equipmentStatus;

    private Integer berthId;

    @TableField(exist = false)
    private Elder elder;

    @Tolerate
    Equipment() {
    }
}
